import axios from "../index.js";



// 查询所有账号集合
export const accountList = (data) => {
  return axios.request({
    url: "/system/account/doPageList",
    method: "post",
    data: data
  });
};

// 新增账号
export const accountAdd = (data) => {
  return axios.request({
    url: "/system/account/save",
    method: "post",
    data: data
  });
};

// 修改账户
export const accountUpdate = (data) => {
  return axios.request({
    url: "/system/account/doUpdById",
    method: "post",
    data: data
  });
};


// 删除账户
export const deleteAccount = (data) => {
  return axios.request({
    url: "/system/account/doDelete",
    method: "get",
    data: data
  });
};

// 所属单位下拉接口
export const ssdwList = (data) => {
  return axios.request({
    url: "/system/organization/getOrganizationUntilList",
    method: "get",
    data: data
  });
};

// 所属部门、班组下拉接口
export const ssbmList = (data) => {
  return axios.request({
    url: "/system/organization/getOrgDepartmentList",
    method: "get",
    data: data
  });
};
